prompt = "tone_stream://%(10000,0,350,440)"
error = "error.wav"
result = ""
print("----------")
extn = session:playAndGetDigits(1,4,3,5000,'#',prompt,error,"\\d+")
print("111111111")
arg = "3100 dial user/" .. extn
session:execute("log","INFO extn=".. extn)
session:execute("log","INFO arg=".. arg)
if not (extn == "") then
    api = freeswitch.API()
    print("conference "..arg)
    result = api:executeString("conference "..arg)
    print("9999999999"..result)
    session:execute("log","INFO result="..result)
else
    session:execute("log","ERR Cannot result="..result)
    print("null---"..result)
end
